go map check key exists

182

go map check key exists -

if val, ok := dict["foo"]; ok {
    //do something here
}

Comments

Submit
0 Comments